package top.rzhsky.util;

/**
 * @author rzh
 * time 2018-11-06 12:38
 */
public class QQCreate {
    public static String createQQ() {
        String[] str = new String[]{"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};
        StringBuilder qq = new StringBuilder();

        int random = (int) (Math.random() * 3 + 7);
        qq.append(str[(int) (Math.random() * 9 + 1)]);
        for (int i = 0; i < random - 1; i++) {
            qq.append(str[(int) (Math.random() * 10)]);
        }
        return qq.toString();
    }

    public static void main(String[] args) {
        String qq = createQQ();
        System.out.println(qq);
    }
}
